package top.abrsm.mapper;

import org.apache.ibatis.annotations.Update;
import top.abrsm.entity.AddressEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 收货地址表 Mapper 接口
 * </p>
 *
 * @author WuZH
 * @since 2023-11-18
 */
@Mapper
public interface AddressMapper extends BaseMapper<AddressEntity> {

    @Update ( value = "UPDATE address_info SET isDefault = 0 WHERE stuId=#{stuId}" )
    Integer updateDefaultAddress ( String stuId );

}
